#pragma once
#include "base\Service.h"
#include "dxstdafx.h"
#include <vector>

class SimpleHighscoreService : public ds::Service {

public:
	SimpleHighscoreService();
	~SimpleHighscoreService(void);
	int readHighscore();
	void saveHighscore();
	int getScore() const {
		return m_Score;
	}
	int getHighscore() const {
		return m_Highscore;
	}
	void setScore(int score);
	bool isNewHighscore() const {
		return m_Highscore >= m_Score;
	}
	void initialize();
	void dispose() {}
private:
	bool m_Updated;
	int m_Score;
	int m_Highscore;
};

